window.onload = function() {
    var mySwiper = new Swiper ('.swiper-container', {
        direction: 'horizontal',
        loop: true,
        // 如果需要分页器
        pagination: {
            el: '.swiper-pagination',
        },
        autoplay : {
            delay:2000,
            disableOnInteraction: false,
        },
    })
}
